package com.usf.jprovider.schema.type;

import com.usf.jprovider.object.env.Environment;
import com.usf.jprovider.object.type.JDouble;
import com.usf.jprovider.object.type.JType;

public final class DBDouble extends AbstractDBType{

	
	public DBDouble() {
		super();
		format = "0.00";
	}
	
	@Override
	public String formatSQL(Environment env, String value) throws Exception {
		return env.getConnector().DoubleFormater(value);
	}
	
	@Override
	public JType<?> toJType(String value) throws Exception {
		return new JDouble(value, format);
	}
}
